package com.acme.task2;

public class GCTest {

	public static void main(String[] args) {
		int numberOfIterations = 1000000; //When numberOfIteration is  < ~1000000, program prints nothing, 
										  // because GC is never called
										  // If it is big enough, finalize called for random set of objects
										  // in random order
		for (int i = 0; i < numberOfIterations; i++) {
			Foo foo = new Foo(i);
		}
	}
}
